package com.aynu.gulimall.order.service;

import com.aynu.gulimall.order.vo.*;
import com.baomidou.mybatisplus.extension.service.IService;
import com.aynu.common.utils.PageUtils;
import com.aynu.gulimall.order.entity.OrderEntity;

import java.util.Map;

/**
 * 订单
 *
 * @author majun
 * @email mjun1833@foxmail.com
 * @date 2020-06-07 22:19:25
 */
public interface OrderService extends IService<OrderEntity> {

    PageUtils queryPage(Map<String, Object> params);

    OrderConfirmVo confirmOrder();

    SubmitOrderResponseVo submitOrder(OrderSubmitVo vo);

    OrderEntity getOrderByOrderSn(String orderSn);

    void closeOrder(OrderEntity orderEntity);

    PayVo getOrderPay(String orderSn);

    PageUtils listWithItem(Map<String, Object> params);

    String handPayResult(PayAsyncVo payAsyncVo);
}

